<?php
/**
 * Created by PhpStorm.
 * User: zl
 * Date: 2017/7/9
 * Time: 13:10
 */
    require_once('../Common.php');

    require_once('LoanFee.php');
    require_once('../SQLBase.php');

    $data = $_POST;
    $return_array = array();
    if(!$data){
        $return_array['state'] = 0;
        $return_array['error'] = 'POST_ERROR';
        exit(json_encode($return_array));
    }
    $l_fee = new LoanFee();

    $r = $l_fee->createLoanMoneyApproval('', $data);

    if(!$r){
        $return_array['state'] = 0;
        $return_array['error'] = 'DB_ERROR';
    }
    else{
        $return_array['state'] = 1;
        $return_array['error'] = '';
    }

    echo json_encode($return_array);




?>